//
//  WBTabbarController.h
//  WeatherBar
//
//  Created by yby on 2024/6/7.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface WBTabbarController : UITabBarController
// 获取tabbar单例
+ (instancetype)wb_shareInstance;
// 销毁单利
+ (void)wb_destroyInstance;

// 点击中间按钮的执行代码块
@property (nonatomic, copy) void(^var_centerBtnClickBlock)(BOOL isClicked);


-(UIViewController *)wb_getCurrentVC;

/**
 添加子控制器
 *@param vc                子控制器
 *@param normalImageName   普通状态下图片
 *@param selectedImageName 选中图片
 *@param isRequired        是否需要包装导航控制器
 */
- (void)wb_tabbarAddChildController:(UIViewController*)childController
                     title:(NSString*)title
                 imageName:(NSString*)imageName
         selectedImageName:(NSString*)selectedImageName
                     isRequiredNavController:(BOOL)isRequired;
@end

NS_ASSUME_NONNULL_END
